package com.tairanchina.md.meeting.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class YearMeetingAwardgoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YearMeetingAwardgoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_awardgoods
     *
     * @mbggenerated Tue Jan 03 13:41:35 CST 2017
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAwardNameIsNull() {
            addCriterion("award_name is null");
            return (Criteria) this;
        }

        public Criteria andAwardNameIsNotNull() {
            addCriterion("award_name is not null");
            return (Criteria) this;
        }

        public Criteria andAwardNameEqualTo(String value) {
            addCriterion("award_name =", value, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameNotEqualTo(String value) {
            addCriterion("award_name <>", value, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameGreaterThan(String value) {
            addCriterion("award_name >", value, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameGreaterThanOrEqualTo(String value) {
            addCriterion("award_name >=", value, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameLessThan(String value) {
            addCriterion("award_name <", value, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameLessThanOrEqualTo(String value) {
            addCriterion("award_name <=", value, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameLike(String value) {
            addCriterion("award_name like", value, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameNotLike(String value) {
            addCriterion("award_name not like", value, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameIn(List<String> values) {
            addCriterion("award_name in", values, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameNotIn(List<String> values) {
            addCriterion("award_name not in", values, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameBetween(String value1, String value2) {
            addCriterion("award_name between", value1, value2, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardNameNotBetween(String value1, String value2) {
            addCriterion("award_name not between", value1, value2, "awardName");
            return (Criteria) this;
        }

        public Criteria andAwardLevelIsNull() {
            addCriterion("award_level is null");
            return (Criteria) this;
        }

        public Criteria andAwardLevelIsNotNull() {
            addCriterion("award_level is not null");
            return (Criteria) this;
        }

        public Criteria andAwardLevelEqualTo(Integer value) {
            addCriterion("award_level =", value, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelNotEqualTo(Integer value) {
            addCriterion("award_level <>", value, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelGreaterThan(Integer value) {
            addCriterion("award_level >", value, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("award_level >=", value, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelLessThan(Integer value) {
            addCriterion("award_level <", value, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelLessThanOrEqualTo(Integer value) {
            addCriterion("award_level <=", value, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelIn(List<Integer> values) {
            addCriterion("award_level in", values, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelNotIn(List<Integer> values) {
            addCriterion("award_level not in", values, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelBetween(Integer value1, Integer value2) {
            addCriterion("award_level between", value1, value2, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("award_level not between", value1, value2, "awardLevel");
            return (Criteria) this;
        }

        public Criteria andAwardPicIsNull() {
            addCriterion("award_pic is null");
            return (Criteria) this;
        }

        public Criteria andAwardPicIsNotNull() {
            addCriterion("award_pic is not null");
            return (Criteria) this;
        }

        public Criteria andAwardPicEqualTo(String value) {
            addCriterion("award_pic =", value, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicNotEqualTo(String value) {
            addCriterion("award_pic <>", value, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicGreaterThan(String value) {
            addCriterion("award_pic >", value, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicGreaterThanOrEqualTo(String value) {
            addCriterion("award_pic >=", value, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicLessThan(String value) {
            addCriterion("award_pic <", value, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicLessThanOrEqualTo(String value) {
            addCriterion("award_pic <=", value, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicLike(String value) {
            addCriterion("award_pic like", value, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicNotLike(String value) {
            addCriterion("award_pic not like", value, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicIn(List<String> values) {
            addCriterion("award_pic in", values, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicNotIn(List<String> values) {
            addCriterion("award_pic not in", values, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicBetween(String value1, String value2) {
            addCriterion("award_pic between", value1, value2, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardPicNotBetween(String value1, String value2) {
            addCriterion("award_pic not between", value1, value2, "awardPic");
            return (Criteria) this;
        }

        public Criteria andAwardNumIsNull() {
            addCriterion("award_num is null");
            return (Criteria) this;
        }

        public Criteria andAwardNumIsNotNull() {
            addCriterion("award_num is not null");
            return (Criteria) this;
        }

        public Criteria andAwardNumEqualTo(Integer value) {
            addCriterion("award_num =", value, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumNotEqualTo(Integer value) {
            addCriterion("award_num <>", value, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumGreaterThan(Integer value) {
            addCriterion("award_num >", value, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("award_num >=", value, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumLessThan(Integer value) {
            addCriterion("award_num <", value, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumLessThanOrEqualTo(Integer value) {
            addCriterion("award_num <=", value, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumIn(List<Integer> values) {
            addCriterion("award_num in", values, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumNotIn(List<Integer> values) {
            addCriterion("award_num not in", values, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumBetween(Integer value1, Integer value2) {
            addCriterion("award_num between", value1, value2, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardNumNotBetween(Integer value1, Integer value2) {
            addCriterion("award_num not between", value1, value2, "awardNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumIsNull() {
            addCriterion("award_surplus_num is null");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumIsNotNull() {
            addCriterion("award_surplus_num is not null");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumEqualTo(Integer value) {
            addCriterion("award_surplus_num =", value, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumNotEqualTo(Integer value) {
            addCriterion("award_surplus_num <>", value, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumGreaterThan(Integer value) {
            addCriterion("award_surplus_num >", value, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("award_surplus_num >=", value, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumLessThan(Integer value) {
            addCriterion("award_surplus_num <", value, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumLessThanOrEqualTo(Integer value) {
            addCriterion("award_surplus_num <=", value, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumIn(List<Integer> values) {
            addCriterion("award_surplus_num in", values, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumNotIn(List<Integer> values) {
            addCriterion("award_surplus_num not in", values, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumBetween(Integer value1, Integer value2) {
            addCriterion("award_surplus_num between", value1, value2, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andAwardSurplusNumNotBetween(Integer value1, Integer value2) {
            addCriterion("award_surplus_num not between", value1, value2, "awardSurplusNum");
            return (Criteria) this;
        }

        public Criteria andIsdeletedIsNull() {
            addCriterion("isdeleted is null");
            return (Criteria) this;
        }

        public Criteria andIsdeletedIsNotNull() {
            addCriterion("isdeleted is not null");
            return (Criteria) this;
        }

        public Criteria andIsdeletedEqualTo(Integer value) {
            addCriterion("isdeleted =", value, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedNotEqualTo(Integer value) {
            addCriterion("isdeleted <>", value, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedGreaterThan(Integer value) {
            addCriterion("isdeleted >", value, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("isdeleted >=", value, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedLessThan(Integer value) {
            addCriterion("isdeleted <", value, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedLessThanOrEqualTo(Integer value) {
            addCriterion("isdeleted <=", value, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedIn(List<Integer> values) {
            addCriterion("isdeleted in", values, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedNotIn(List<Integer> values) {
            addCriterion("isdeleted not in", values, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedBetween(Integer value1, Integer value2) {
            addCriterion("isdeleted between", value1, value2, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andIsdeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("isdeleted not between", value1, value2, "isdeleted");
            return (Criteria) this;
        }

        public Criteria andCreatedonIsNull() {
            addCriterion("createdon is null");
            return (Criteria) this;
        }

        public Criteria andCreatedonIsNotNull() {
            addCriterion("createdon is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedonEqualTo(Date value) {
            addCriterion("createdon =", value, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonNotEqualTo(Date value) {
            addCriterion("createdon <>", value, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonGreaterThan(Date value) {
            addCriterion("createdon >", value, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonGreaterThanOrEqualTo(Date value) {
            addCriterion("createdon >=", value, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonLessThan(Date value) {
            addCriterion("createdon <", value, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonLessThanOrEqualTo(Date value) {
            addCriterion("createdon <=", value, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonIn(List<Date> values) {
            addCriterion("createdon in", values, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonNotIn(List<Date> values) {
            addCriterion("createdon not in", values, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonBetween(Date value1, Date value2) {
            addCriterion("createdon between", value1, value2, "createdon");
            return (Criteria) this;
        }

        public Criteria andCreatedonNotBetween(Date value1, Date value2) {
            addCriterion("createdon not between", value1, value2, "createdon");
            return (Criteria) this;
        }

        public Criteria andModifiedonIsNull() {
            addCriterion("modifiedon is null");
            return (Criteria) this;
        }

        public Criteria andModifiedonIsNotNull() {
            addCriterion("modifiedon is not null");
            return (Criteria) this;
        }

        public Criteria andModifiedonEqualTo(Date value) {
            addCriterion("modifiedon =", value, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonNotEqualTo(Date value) {
            addCriterion("modifiedon <>", value, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonGreaterThan(Date value) {
            addCriterion("modifiedon >", value, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonGreaterThanOrEqualTo(Date value) {
            addCriterion("modifiedon >=", value, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonLessThan(Date value) {
            addCriterion("modifiedon <", value, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonLessThanOrEqualTo(Date value) {
            addCriterion("modifiedon <=", value, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonIn(List<Date> values) {
            addCriterion("modifiedon in", values, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonNotIn(List<Date> values) {
            addCriterion("modifiedon not in", values, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonBetween(Date value1, Date value2) {
            addCriterion("modifiedon between", value1, value2, "modifiedon");
            return (Criteria) this;
        }

        public Criteria andModifiedonNotBetween(Date value1, Date value2) {
            addCriterion("modifiedon not between", value1, value2, "modifiedon");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_awardgoods
     *
     * @mbggenerated do_not_delete_during_merge Tue Jan 03 13:41:35 CST 2017
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_awardgoods
     *
     * @mbggenerated Tue Jan 03 13:41:35 CST 2017
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}